package collection;

import java.util.Arrays;
import java.util.List;

public class ArrayToList {
    public static void main(String[] args) {
        String[] str = new String[]{"one","two","three","four","five"};

        List<String> list = Arrays.asList(str);
        System.out.println(list);

        str[0] = "0";
        System.out.println(Arrays.toString(str));
        System.out.println(list);

        list.set(1,"1");
        System.out.println(Arrays.toString(str));   //-----------
        System.out.println(list);
    }
}
